package com.summer.campussct.utils;

public class UserIdHolder {
    private static final ThreadLocal<Long> tl = new ThreadLocal<>();

    public static void saveId(long id){
        tl.set(id);
    }

    public static long getId(){
        return tl.get();
    }

    public static void removeId(){
        tl.remove();
    }
}
